import axios from "axios";
const ajax = axios.create({
  baseURL: "/api",
  timeout: 50000,
})
// 添加请求拦截器
ajax.interceptors.request.use(function (config) {
  return config;
});

// 添加响应拦截器
ajax.interceptors.response.use(function (response) {
  return response.data;
});

export default ajax;
